package org.xxpay.core.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysQuotaExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    private Integer limit;

    private Integer offset;

    public SysQuotaExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        public void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUsdfIsNull() {
            addCriterion("usdf is null");
            return (Criteria) this;
        }

        public Criteria andUsdfIsNotNull() {
            addCriterion("usdf is not null");
            return (Criteria) this;
        }

        public Criteria andUsdfEqualTo(Long value) {
            addCriterion("usdf =", value, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfNotEqualTo(Long value) {
            addCriterion("usdf <>", value, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfGreaterThan(Long value) {
            addCriterion("usdf >", value, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfGreaterThanOrEqualTo(Long value) {
            addCriterion("usdf >=", value, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfLessThan(Long value) {
            addCriterion("usdf <", value, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfLessThanOrEqualTo(Long value) {
            addCriterion("usdf <=", value, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfIn(List<Long> values) {
            addCriterion("usdf in", values, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfNotIn(List<Long> values) {
            addCriterion("usdf not in", values, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfBetween(Long value1, Long value2) {
            addCriterion("usdf between", value1, value2, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdfNotBetween(Long value1, Long value2) {
            addCriterion("usdf not between", value1, value2, "usdf");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateIsNull() {
            addCriterion("usdf_rate is null");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateIsNotNull() {
            addCriterion("usdf_rate is not null");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateEqualTo(Long value) {
            addCriterion("usdf_rate =", value, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateNotEqualTo(Long value) {
            addCriterion("usdf_rate <>", value, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateGreaterThan(Long value) {
            addCriterion("usdf_rate >", value, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateGreaterThanOrEqualTo(Long value) {
            addCriterion("usdf_rate >=", value, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateLessThan(Long value) {
            addCriterion("usdf_rate <", value, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateLessThanOrEqualTo(Long value) {
            addCriterion("usdf_rate <=", value, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateIn(List<Long> values) {
            addCriterion("usdf_rate in", values, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateNotIn(List<Long> values) {
            addCriterion("usdf_rate not in", values, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateBetween(Long value1, Long value2) {
            addCriterion("usdf_rate between", value1, value2, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andUsdf_rateNotBetween(Long value1, Long value2) {
            addCriterion("usdf_rate not between", value1, value2, "usdf_rate");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Long value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Long value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Long value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Long value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Long value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Long> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Long> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Long value1, Long value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Long value1, Long value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andSystem_keyIsNull() {
            addCriterion("system_key is null");
            return (Criteria) this;
        }

        public Criteria andSystem_keyIsNotNull() {
            addCriterion("system_key is not null");
            return (Criteria) this;
        }

        public Criteria andSystem_keyEqualTo(String value) {
            addCriterion("system_key =", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyNotEqualTo(String value) {
            addCriterion("system_key <>", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyGreaterThan(String value) {
            addCriterion("system_key >", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyGreaterThanOrEqualTo(String value) {
            addCriterion("system_key >=", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyLessThan(String value) {
            addCriterion("system_key <", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyLessThanOrEqualTo(String value) {
            addCriterion("system_key <=", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyLike(String value) {
            addCriterion("system_key like", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyNotLike(String value) {
            addCriterion("system_key not like", value, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyIn(List<String> values) {
            addCriterion("system_key in", values, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyNotIn(List<String> values) {
            addCriterion("system_key not in", values, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyBetween(String value1, String value2) {
            addCriterion("system_key between", value1, value2, "system_key");
            return (Criteria) this;
        }

        public Criteria andSystem_keyNotBetween(String value1, String value2) {
            addCriterion("system_key not between", value1, value2, "system_key");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeIsNull() {
            addCriterion("google_code is null");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeIsNotNull() {
            addCriterion("google_code is not null");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeEqualTo(String value) {
            addCriterion("google_code =", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeNotEqualTo(String value) {
            addCriterion("google_code <>", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeGreaterThan(String value) {
            addCriterion("google_code >", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeGreaterThanOrEqualTo(String value) {
            addCriterion("google_code >=", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeLessThan(String value) {
            addCriterion("google_code <", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeLessThanOrEqualTo(String value) {
            addCriterion("google_code <=", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeLike(String value) {
            addCriterion("google_code like", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeNotLike(String value) {
            addCriterion("google_code not like", value, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeIn(List<String> values) {
            addCriterion("google_code in", values, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeNotIn(List<String> values) {
            addCriterion("google_code not in", values, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeBetween(String value1, String value2) {
            addCriterion("google_code between", value1, value2, "google_code");
            return (Criteria) this;
        }

        public Criteria andGoogle_codeNotBetween(String value1, String value2) {
            addCriterion("google_code not between", value1, value2, "google_code");
            return (Criteria) this;
        }

        public Criteria andUser_idIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUser_idIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUser_idEqualTo(Long value) {
            addCriterion("user_id =", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThan(Long value) {
            addCriterion("user_id >", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idLessThan(Long value) {
            addCriterion("user_id <", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idIn(List<Long> values) {
            addCriterion("user_id in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_idNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "user_id");
            return (Criteria) this;
        }

        public Criteria andUser_nameIsNull() {
            addCriterion("user_name is null");
            return (Criteria) this;
        }

        public Criteria andUser_nameIsNotNull() {
            addCriterion("user_name is not null");
            return (Criteria) this;
        }

        public Criteria andUser_nameEqualTo(String value) {
            addCriterion("user_name =", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotEqualTo(String value) {
            addCriterion("user_name <>", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameGreaterThan(String value) {
            addCriterion("user_name >", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameGreaterThanOrEqualTo(String value) {
            addCriterion("user_name >=", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameLessThan(String value) {
            addCriterion("user_name <", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameLessThanOrEqualTo(String value) {
            addCriterion("user_name <=", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameLike(String value) {
            addCriterion("user_name like", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotLike(String value) {
            addCriterion("user_name not like", value, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameIn(List<String> values) {
            addCriterion("user_name in", values, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotIn(List<String> values) {
            addCriterion("user_name not in", values, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameBetween(String value1, String value2) {
            addCriterion("user_name between", value1, value2, "user_name");
            return (Criteria) this;
        }

        public Criteria andUser_nameNotBetween(String value1, String value2) {
            addCriterion("user_name not between", value1, value2, "user_name");
            return (Criteria) this;
        }

        public Criteria andIpIsNull() {
            addCriterion("ip is null");
            return (Criteria) this;
        }

        public Criteria andIpIsNotNull() {
            addCriterion("ip is not null");
            return (Criteria) this;
        }

        public Criteria andIpEqualTo(String value) {
            addCriterion("ip =", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotEqualTo(String value) {
            addCriterion("ip <>", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpGreaterThan(String value) {
            addCriterion("ip >", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpGreaterThanOrEqualTo(String value) {
            addCriterion("ip >=", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLessThan(String value) {
            addCriterion("ip <", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLessThanOrEqualTo(String value) {
            addCriterion("ip <=", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpLike(String value) {
            addCriterion("ip like", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotLike(String value) {
            addCriterion("ip not like", value, "ip");
            return (Criteria) this;
        }

        public Criteria andIpIn(List<String> values) {
            addCriterion("ip in", values, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotIn(List<String> values) {
            addCriterion("ip not in", values, "ip");
            return (Criteria) this;
        }

        public Criteria andIpBetween(String value1, String value2) {
            addCriterion("ip between", value1, value2, "ip");
            return (Criteria) this;
        }

        public Criteria andIpNotBetween(String value1, String value2) {
            addCriterion("ip not between", value1, value2, "ip");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("createTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}